#!/bin/bash
cat ./series-loongarch64.conf | while read line
do
    if [[ $line == '' || $line =~ ^\s*# ]]; then
        continue
    fi
    echo "====patch $line======"
    patch -p1 -F1 -s < ./patches/$line
done
